﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Sqo;

namespace EDMD
{

    /// [Generated Jan 31 2011]
    [Serializable()]
    public partial class i_CalendarItem_Related : Utils, ISqoDataObject
    {

        #region "private fields"

        private int _CalendarItem_Related_ID;
        private int _CalendarItem_ID;
        private int _index;

        #endregion

        #region "public properties"

        public int CalendarItem_Related_ID
        {
            get { return _CalendarItem_Related_ID; }
            set { _CalendarItem_Related_ID = value; }
        }
        public int CalendarItem_ID
        {
            get { return _CalendarItem_ID; }
            set { _CalendarItem_ID = value; }
        }
        public int index
        {
            get { return _index; }
            set { _index = value; }
        }

        #endregion


        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }

        int ISqoDataObject.OID { get { return CalendarItem_Related_ID; } set { } }
        #endregion
    }


    public partial class s_CalendarItem_Related : i_CalendarItem_Related
    {
        #region "MAPPER"
        public static EDMD.i_CalendarItem_Related Convert(CalendarItem_Related od_CalendarItem_Related)
        {
            return new EDMD.i_CalendarItem_Related()
            {

                CalendarItem_Related_ID = IsNull(od_CalendarItem_Related.CalendarItem_Related_ID),
                CalendarItem_ID = IsNull(od_CalendarItem_Related.CalendarItem_ID),
                index = IsNull(od_CalendarItem_Related.index),

            };
        }
        #endregion
    }
}

